package net.tw.transactional2.annotation;


import net.tw.transactional2.config.Transactional2Config;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableAsync
@EnableAspectJAutoProxy
@EnableTransactionManagement
@Import(Transactional2Config.class)
public @interface EnableTransactional2 {
    String value() default "";
}
